package nb.diskfilesystem.ui;

import javafx.scene.control.ScrollPane;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.TilePane;

public class MainView {
    public static BorderPane rootNode;
    public static ScrollPane scrollPane; // 滚动面板
    public static TilePane fileArea; // 文件区域

    public MainView() {
        scrollPane = (ScrollPane) MainView.rootNode.lookup("#scrollPane");
        System.out.println(scrollPane.getContent() + "1111");
        fileArea = (TilePane) scrollPane.getContent();
    }

    // 获取滚动面板
    public ScrollPane getScrollPane() {
        return scrollPane;
    }

    // 获取文件区域
    public TilePane getFileArea() {
        return fileArea;
    }
}